package com.cskaoyan.controller;

import com.cskaoyan.bean.PO.MarketNoticeAdmin;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 通知中心
 *
 * @author wenkaikai
 * @since 2022/08/15 10:09
 */

@RestController
@RequestMapping("admin/profile")
public class AdminProfileController {


    @Autowired
    AdminProfileService adminProfileService;


    @RequestMapping("nnotice")
    public BaseRespVo nnotice() {
        return BaseRespVo.ok(0, null, "成功");
    }

    /**
     * 通知列表
     * @return
     */
    @RequestMapping("lsnotice")
    public BaseRespVo lsnotice(BasePageInfo info, String title, String type) {
        CommonData<MarketNoticeAdmin> data = adminProfileService.queryNoticeList(info,title,type);
        return BaseRespVo.ok(0, data, "成功");
    }


}